<?php
  echo $this->Html->css('calendar/fullcalendar');
  echo $this->Html->css('pdf_style');
?>

<div id="content">
	<!--  start page-heading -->
	<div id="page-heading">
		<h1>
        <?php echo __('Gift Card');?>
        <?php echo $this->Html->link('Gift card list', array('controller' => 'cashiers', 'action' => 'giftcard'), array('class' => 'back-button')); ?>
        <?php echo $this->Html->link('Print', array('controller' => 'cashiers', 'action' => 'print_gift', $gift['Gift']['id'], 'mypdf' => true), array('class' => 'export-button')); ?>
    </h1>
	</div>
	<!-- end page-heading -->
	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
  	<tr>
  		<th rowspan="3" class="sized">
          <?php echo $this->Html->image('/images/shared/side_shadowleft.jpg', array('width' => '20', 'height' => '300', 'alt' => '')); ?>
      </th>
  		<th class="topleft"></th>
  		<td id="tbl-border-top">&nbsp;</td>
  		<th class="topright"></th>
  		<th rowspan="3" class="sized">
          <?php echo $this->Html->image('/images/shared/side_shadowright.jpg', array('width' => '20', 'height' => '300', 'alt' => '')); ?>
      </th>
  	</tr>
  	<tr>
  		<td id="tbl-border-left"></td>
  		<td>
  		<!--  start content-table-inner ...................................................................... START -->
    		<div id="content-table-inner">
      			<!--  start table-content  -->
      			<div id="table-content">
      				<h2>Gift Certificate</h2>
              <table border="0" style="margin: 0 auto;" cellpadding="0" cellspacing="0" id="product-table">
      				    <tr>
                      <th>Certificate</th>
                      <td><?php echo $gift['Gift']['name']; ?></td>
                  </tr><tr>
                      <th valign="top">Code</th>
                      <td><?php echo $this->Html->image('../files/vouchers/'.$gift['Gift']['code'].'.png'); ?></td>
                  </tr>
      				    <tr>
                      <th>Amount</th>
                      <td><?php echo $this->Number->currency($gift['Gift']['value'], 'USD'); ?></td>
                  </tr>
      				    <tr>
                      <th>Expiry Date</th>
                      <td><?php echo $gift['Gift']['expiry']; ?></td>
                  </tr>
              </table>
        		</div>
      <!--  end content-table  -->
    		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>